﻿@model IList<OnlineShop.Models.ViewModels.CategoryModel>

<div class="sidebar_box" id="Div1">
    <h3>Danh mục (@Model.Count)</h3>
    <div class="content_box">
        @if (Model.Count > 0)
        {
        <ul id="category_list">
            @foreach (var item in Model)
            {
                <li>
                    <a href="Product/Category/@item.Id">@string.Format("{0} ({1})",item.Name,item.NumProduct)</a>
                </li>            
            }
        </ul>
        }
    </div>
    <!-- kết thúc content_box-->
</div>
<!-- kết thúc sidebar_box-->

